/*
 * @Author:
 * @Date: 2023-06-27 10:52:46
 * @LastEditors:
 * @LastEditTime: 2023-09-08 16:54:14
 * @FilePath: \immoka-admin\src\api\worksManagement\index.js
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name} , All Rights Reserved.
 */
import request from '@/utils/request'

// 语音作品集列表
export function voiceList(query) {
    return request({
        url: '/admin/voice/list',
        method: 'get',
        params: query
    })
}
// 语音作品集新增
export function voiceSave(query) {
    return request({
        url: '/admin/voice/save',
        method: 'post',
        data: query
    })
}
// 语音作品集上下架
export function voiceOff(query) {
    return request({
        url: '/admin/voice/off',
        method: 'post',
        data: query
    })
}
// 作品列表
export function voiceContentList(query) {
    return request({
        url: '/admin/voice/content/list',
        method: 'get',
        params: query
    })
}
// 作品保存/编辑
export function voiceContentSave(query) {
    return request({
        url: '/admin/voice/content/save',
        method: 'post',
        data: query
    })
}

// 作品集删除
export function voiceDelete(query) {
    return request({
        url: '/admin/voice/delete',
        method: 'post',
        data: query
    })
}
// 作品删除
export function voiceContentDelete(query) {
    return request({
        url: '/admin/voice/content/delete',
        method: 'post',
        data: query
    })
}

// 语音作品集上下架
export function voiceContentOff(query) {
    return request({
        url: '/admin/voice/content/off',
        method: 'post',
        data: query
    })
}

// 白噪音列表
export function whiteNoiseList(query) {
    return request({
        url: '/admin/voice/white/noise/list',
        method: 'get',
        params: query
    })
}
// 白噪音保存
export function whiteNoiseSave(query) {
    return request({
        url: '/admin/voice/white/noise/save',
        method: 'post',
        data: query
    })
}
// 白噪音上下架
export function whiteNoiseOff(query) {
    return request({
        url: '/admin/voice/white/noise/off',
        method: 'post',
        data: query
    })
}
// 白噪音删除
export function whiteNoiseDelete(query) {
    return request({
        url: '/admin/voice/white/noise/delete',
        method: 'post',
        data: query
    })
}

/**
 *
 * 计划
 *
 */
// 列表
export function voicePlanList(query) {
    return request({
        url: '/admin/voice/plan/list',
        method: 'get',
        params: query
    })
}
// 添加
export function voicePlanSave(query) {
    return request({
        url: '/admin/voice/plan/save',
        method: 'post',
        data: query
    })
}
// 删除
export function voicePlanDelete(query) {
    return request({
        url: '/admin/voice/plan/delete',
        method: 'post',
        data: query
    })
}
// 修改状态
export function voicePlanOff(query) {
    return request({
        url: '/admin/voice/plan/off',
        method: 'post',
        data: query
    })
}
// 计划详情列表 plan_id
export function voicePlanContentList(query) {
    return request({
        url: '/admin/voice/plan/content/list',
        method: 'get',
        params: query
    })
}
// 计划详情-添加
export function voicePlanContentSave(query) {
    return request({
        url: '/admin/voice/plan/content/save',
        method: 'post',
        data: query
    })
}
// 计划详情-修改状态
export function voicePlanContentOff(query) {
    return request({
        url: '/admin/voice/plan/content/off',
        method: 'post',
        data: query
    })
}
// 计划详情-修改状态
export function voicePlanContentDelete(query) {
    return request({
        url: '/admin/voice/plan/content/delete',
        method: 'post',
        data: query
    })
}

// 引导文案列表
export function adminVoiceGuideList(query) {
    return request({
        url: '/admin/voice/guide',
        method: 'get',
        params: query
    })
}
// 引导文案保存
export function adminVoiceGuideSave(query) {
    return request({
        url: '/admin/voice/guide',
        method: 'post',
        data: query
    })
}
// 引导文案删除
export function adminVoiceGuideDelete(query) {
    return request({
        url: '/admin/voice/guide',
        method: 'delete',
        data: query
    })
}
